//
//  QuestionViewController.m
//  InformationFoot
//
//  Created by 魔曦 on 2018/7/17.
//  Copyright © 2018年 MacBook. All rights reserved.
//

#import "QuestionViewController.h"
#import "QuestionDetailController.h"
@interface QuestionViewController ()

@end

@implementation QuestionViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"介绍";

    self.navigationController.navigationBar.barTintColor = mx_Wode_colorBlue2374e4;
    self.navigationController.navigationBar.translucent = NO;
    
    

// Do any additional setup after loading the view from its nib.
}
- (IBAction)questionBtnClick:(UIButton *)sender {
    
    QuestionDetailController *vc = [[QuestionDetailController alloc]init];
    vc.index = sender.tag;
    vc.titleText = sender.titleLabel.text;
    [self.navigationController pushViewController:vc animated:YES];
}

- (IBAction)ZKclick:(UIButton *)sender {
    if(sender.tag == 99){
        if (self.viewHeight2.constant == 0) {
            self.viewHeight2.constant = 132;
            self.HeiView2.hidden = NO;
        }else{
            self.viewHeight2.constant = 0;
            self.HeiView2.hidden = YES;
        }
    }else if(sender.tag == 98){
        if (self.viewHeight3.constant == 0) {
            self.viewHeight3.constant = 132;
            self.HeiView3.hidden = NO;
        }else{
            self.viewHeight3.constant = 0;
            self.HeiView3.hidden = YES;
        }
    }else if(sender.tag == 97){
        if (self.viewHeight4.constant == 0) {
            self.viewHeight4.constant = 176;
            self.HeiView4.hidden = NO;
        }else{
            self.viewHeight4.constant = 0;
            self.HeiView4.hidden = YES;
        }
    }else{
        if (self.Viewheight.constant == 0) {
            self.Viewheight.constant = 176;
            self.Heiview.hidden = NO;
        }else{
            self.Viewheight.constant = 0;
            self.Heiview.hidden = YES;
        }
    }
 
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
